package com.yueshop.auth.feign;

import com.yueshop.common.utils.R;
import com.yueshop.auth.vo.SocialUserVo;
import com.yueshop.auth.vo.UserLoginVo;
import com.yueshop.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("yueshop-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);


    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);


    @PostMapping("/member/member/oauth2/login")
    public R oauthLogin(@RequestBody SocialUserVo vo);
}
